package com.bfl.demo.controller;

import com.bfl.demo.service.TestService;
import com.bfl.lite.mvc.annotation.LiteAutowired;
import com.bfl.lite.mvc.annotation.LiteController;
import com.bfl.lite.mvc.annotation.LiteRequestMapping;
import com.bfl.lite.mvc.annotation.LiteRequestParam;

@LiteController
@LiteRequestMapping("/test")
public class TestController {

    @LiteAutowired
    private TestService testService;

    @LiteRequestMapping("/hello")
    public String hello(@LiteRequestParam("name") String name) {
        return testService.hello(name);
    }

}
